package com.hliushi.movie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hliushi.movie.entity.MovieStar;
import com.hliushi.movie.mapper.MovieStarMapper;
import com.hliushi.movie.service.MovieStarService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MovieStarServiceImpl extends ServiceImpl<MovieStarMapper, MovieStar> implements MovieStarService {


    @Override
    public boolean insertMovieStar(MovieStar movieStar) {
        log.info("insert a movieStar record: {}", movieStar);
        return super.save(movieStar);
    }

    @Override
    public boolean updateMovieStar(MovieStar movieStar) {
        log.info("update a movieStar record: {}", movieStar);
        return super.updateById(movieStar);
    }
}
